<?php


namespace app\api\model;

class Member extends BaseModel {

    public function getMember($member){
        return self::where('id',$member)->whereOr('openid',$member)->find();
    }

    public function sort(){
        return $this->hasOne('sort','id','agentid',[],'LEFT');
    }
}



